package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Great;
import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.RegionQueryObject;

import java.util.List;

public interface IGreatService {
    /**
     * 查询是否需存在当前记录
     * @param userId
     * @param treavelId
     * @return
     */
    Great get(Long userId, Long treavelId);

    /**
     * 删除点赞
     * @param userId
     * @param treavelId
     */
    void deleteGreat(Long userId, Long treavelId);

    /**
     * 增加点赞的记录
     * @param great
     */
    void insertGreat(Great great);

    /**
     * 修改消息状态为1
     * @param authorId
     * @param read
     */
    void updateState(Long authorId, int read);

    void updateCommentState(Long authorId, int read);
}
